#ifndef _DISP_H_
#define _DISP_H_

#include <osa.h>

#ifndef TRUE
#define TRUE 	1
#endif

#ifndef FALSE
#define FALSE 	0
#endif

#ifndef ms
#define ms  / 1 
#endif

#define SEGMENT_DIGIT_MAX  5

#define SEGMENT_O		   0
#define SEGMENT_ALL_OFF    10
#define SEGMENT_ALL_ON     11
#define SEGMENT_DOT		   12
#define SEGMENT_DOT1   	   13
#define SEGMENT_DOT2   	   14
#define SEGMENT_COLON	   15
#define SEGMENT_QUOTE	   16
#define SEGMENT_DAT		   17
#define SEGMENT_N		   18
#define SEGMENT_F   	   19
#define SEGMENT_D   	   20
#define SEGMENT_C		   21
#define SEGMENT_U   	   22
#define SEGMENT_R   	   23



typedef struct
{
	char act;						//action mode
	char opt_flg;					//option data flag
	unsigned char time_update;		//time for display
	char post[SEGMENT_DIGIT_MAX];	//Segment data 
}ST_DISP_MSG;


//DISPLAY ACTION
#define NORMAL_DISPLAY		0x00
#define MOTION_DISPLAY 		0x01
#define PORT_OUT_DISPLAY 		0x02
#define CLEAR_DISPLAY  		0x80


extern OST_QUEUE   queue_display;

void InitDisp( void );
void TaskDisp( void );


#endif